package com.springinpractice.ch07.dao;

import java.util.Date;

import org.springframework.stereotype.Repository;
import com.springinpractice.ch07.model.Article;

@Repository
public class JcrArticleDao extends AbstractJcrDao<Article>
{
	public JcrArticleDao()
	{
		super("articles");
	}

	public void create(Article article)
	{
		article.setPath(toPath(article.getId()));
		article.setDateCreated(new Date());
		super.create(article);
	}
}